/*
 * Created on 16-07-2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package utiles.exceptions;

/**
 * @author Virtual Dark Priest
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

public class InternalErrorException extends Exception {

    /**
	 * 
	 */
	private static final long serialVersionUID = -3268051741618896669L;
	private Exception encapsulatedException;

    public InternalErrorException(Exception exception) {
        encapsulatedException = exception;
    }

    public String getMessage() {
        return encapsulatedException.getMessage();
    }

    public Exception getEncapsulatedException() {
        return encapsulatedException;
    }
    
    public void printStackTrace() {
        printStackTrace(System.err);
    }
} 